package com.cjm.one.service.impl;

import com.cjm.one.common.result.Result;
import com.cjm.one.goods.client.GoodsCollectClient;
import com.cjm.one.service.GoodsCollectService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class GoodsCollectServiceImpl implements GoodsCollectService {
    @Resource
    private GoodsCollectClient goodsCollectClient;
    @Override
    public Result<Boolean> insertCollect(Long goodsId) {
        return goodsCollectClient.insertCollect(goodsId);
    }

    @Override
    public Result<Boolean> deleteCollect(Long id) {
        return goodsCollectClient.deleteCollect(id);
    }

    @Override
    public Result<Boolean> deleteCollectBatch(Long[] ids) {
        return goodsCollectClient.deleteCollectBatch(ids);
    }

    @Override
    public Result<Boolean> checkGoodsCollect(Long id) {
        return goodsCollectClient.checkGoodsCollect(id);
    }
}
